package com.dogkr.server.web.guest;

import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.ResultPath;
import org.apache.struts2.convention.annotation.Results;

import com.dogkr.common.ServerAction;
import com.dogkr.server.entity.SysDict;
import com.dogkr.server.service.SysDictService;


// 设置Struts2注解
@ParentPackage(value = "project-default")
@Namespace(value = "/sys/dict")
@ResultPath("/WEB-INF/jsps")
// 页面文件空间
@Results({
})
public class SysDictAction extends ServerAction {
	
	private static final long serialVersionUID = 1L;
	
	private SysDictService sysDictService;
	
	public void get() {
		String dictCode = this.get("dictcode");
		String propertyCode = this.get("proCode");
		SysDict dict = sysDictService.selectDictByCode(dictCode);
		outJson(dict);
	}
}
